home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
dlg
/
base36v1.lha
/
base36.doc
< prev
Wrap
Text File
|
1994-07-27
|
2KB
|
67 lines
Base36 Documentation
--------------------
If you have ever played with any RIP graphics for a BBS, you probably have
noticed all those weird numbers in the commands. They are called
MegaNums. All they are is base 36 numbers (as compared to base 16 like
hexidecimal or base 10 for decimal). They help to conserve transmission
times. For example, a long decimal number like 1000 translates to
just RS.
The problem for a long time (at least for me) was that there wasn't a
MegaNum converter for the Amiga. I had to boot up my IBM and use a
program called Base36 to convert all the numbers. This was a little
annoying so I set down and wrote this program.
To use it, type base36 <number> where the number is either a MegaNum or a
normal decimal number.
Something like the following will appear on your screen:
7.dh0:bin> base36 1000
Decimal: 46656
RIP: 00RS
Or, conversely:
7.dh0:bin> base36 RS
Decimal: 1000
RIP: RS
See how easy it is?
I have included the code (in C) for the program. It should compile on
nearly everything (including UNIX and DOS machines) since it is all pure
ANSI C. You should be able to figure it out.
One thing I like to note is that my program can handle larger numbers than
the beamer version does. Hah! Be careful with really big ones cause I'm
not at all sure what will happen.
You can use the code for whatever you want as long as I get credit for it
somehow. For example, if you are writing a shareware program with it,
send me a copy (especially if it is a door program for DLG).
Please distribute this far and wide via any means possible (SANs, ADS,
AmiNet, etc.). I don't have access to the file echoes and I really
can't get the program up on AmiNet either for some reason.
I can be contacted at the following:
Guy Smith
1093 Manigan Ave.
Oviedo, FL 32765
Voice: 407-366-6426
Internet: GUSMITH@delphi.com
Or on my BBS at:
Gus's BS BBS
Oviedo, FL (Orlando)
407-366-6274
AmigaNet: 40:716/21.0
FidoNet: 1:363/274.0 (DON'T use this until at least the .210 nodelist
because my number is incorrect. Make sure the
listed number is 366-6274 and NOT 366-6426 before
calling.)